package org.realteam.example.service;

import java.io.Serializable;
import java.util.List;

/**
 * @author Harry
 * @version 1.0 Created On：2011-12-23 下午7:14:56
 */
public interface ExampleManager {

	void findObject(String hql) throws Exception;
	
	public Object load(Serializable oid, Class<?> clazz) throws Exception;
	
	public Object load0(Serializable oid, Class<?> clazz) throws Exception;

	void updateObject(Object o) throws Exception;

	void updateObjectInNewTransaction(Object o) throws Exception;

	<T> void batchUpdateObject(List<T> l) throws Exception;
	
	<T> void batchUpdateOnlyOnce(List<T> l) throws Exception;

	void queryObject() throws Exception;

	void doBizWithNoTransaction();

	void doBizUseTransactionTemplate();

}
